package com.spring.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;


@Controller
public class UserBean {
    @Bean(name = "newUser")
    public User user1() {
        User user = new User();
        user.setId(1);
        user.setContent("user");
        return user;
    }
}
